package com.xu.mylol.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;
import android.webkit.WebViewClient;

import com.xu.mylol.R;

/**
 * Created by dllo on 16/1/8.
 */
public class Fragment_Image extends Fragment {
    private  WebView webView;
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view =inflater.inflate(R.layout.fragment_image,null);

        webView = (WebView) view.findViewById(R.id.image_webview);
        webView.getSettings().setJavaScriptEnabled(true);
        webView.setWebViewClient(new WebViewClient());

        webView.loadUrl("http://box.dwstatic.com/apiAlbum.php?action=l&albumsTag=beautifulWoman&p=1");
        return  view;
    }
}
